<template>
  <div class="container">
    <template >
        <!-- v-for="(item, index) in accountRecharges" -->
      <a-badge
        
        class="item mt1"
        type="primary"
      >
      <!-- :key="index"
        :value="`第 ${index + 1} 张`" -->
        <div class="invoice">
          <div class="invoice-round left">
            <i
              v-for="item in 15"
              class="round"
              :key="item"
            ></i>
            <!-- 
             -->
          </div>
          <div class="invoice-body">
            <div class="invoice-header">
              <div class="invoice-title">
                <h1>江西增值税专用发票</h1>
              </div>
            </div>
            <div class="invoice-date">
              <span class="yellow"></span>
              开票日期:{{NewTime}}
              <span class="print ml1">
                
              </span>
            </div>
            <table
              
              align="center"
              bgcolor="#cd8846"
              border="0"
              cellpadding="4"
              cellspacing="1.6"
              class="tabtop13"
              width="100%"
            >
            <!-- :key="index" -->
              <tr>
                <td
                  colspan="1"
                  rowspan="1"
                  width="1%"
                >
                  <div class="wv">购买方</div>
                </td>
                <td
                  colspan="16"
                  width="100%"
                >
                  <div class="row">
                    <div style="width: 7rem">
                      <div class="font-justify">名&emsp;&emsp;&emsp;&emsp;称:</div>
                      <div class="font-justify">纳税人识别号:</div>
                      <div class="font-justify">地址、&emsp;电话:</div>
                      <div class="font-justify">开户行及账户:</div>
                    </div>
                    <div
                      class="font-left"
                      style="width: 80%"
                    >
                      <div class="print block"></div>
                      <div class="print block"></div>
                      <div class="print block">
                        
                        <span></span>
                      </div>
                      <div class="print block"></div>
                    </div>
                  </div>
                </td>

                <td
                  colspan="1"
                  rowspan="1"
                  width="1%"
                >
                  <div class="text-v">密码区</div>
                </td>
                <td
                  colspan="10"
                  rowspan="1"
                  width="10%"
                ></td>
              </tr>

              <tr style="height:200px">
                <td
                  colspan="7"
                  width="20%"
                  style="vertical-align:top;position:relative;"
                >
                  <div >货物或应税劳务、服务名称</div>
                  <div class="block">
                    <span class="print">12121的挂号费</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div style="position: absolute;bottom: 0;left: 50%;transform: translate(-50%, -50%);">合&emsp;&emsp;&emsp; 计</div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;"
                >
                  <div  >规格型号</div>
                  <!-- <div class="block"  ><span></span></div> -->
                  
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>单位</div>
                  <div>
                    <span class="print">次</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>数量</div>
                  <div>
                    <span class="print">11</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>单价</div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>金额</div>
                  <div >
                    <span class="print">12121</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div style="position: absolute;bottom: 0;left: 50%;transform: translate(-50%, -50%);" >
                    <span class="print">￥121221</span>
                  </div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>税率</div>
                  <div>
                    <span class="print">13%</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                </td>
                <td
                  colspan="3"
                  width="9%"
                  style="vertical-align:top;position:relative;"
                >
                  <div>税额</div>

                  <div>
                    <span class="print">121212</span>
                  </div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block"></div>
                  <div class="block" style="position: absolute;bottom: 0;left: 50%;transform: translate(-50%, -50%);">
                    <span class="print">￥12121</span>
                  </div>
                </td>
              <tr>
                <td colspan="7">价税合计（大写）</td>
                <td colspan="21">
                  <div class="row">
                    <div
                      class="col-1"
                      style="text-align: left; padding-left: 1em"
                    >
                    <a-row>
                        <a-col :span="12">
                            <span class="print">
                                <i class="el-icon-circle-close"></i>
                                121212
                            </span>
                        </a-col>
                        <a-col :span="12">
                            （小写）
                            <span class="print">￥12121212 </span>
                        </a-col>
                    </a-row>
                      
                    </div>
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="1">
                  <div class="wv">销售方</div>
                </td>
                <td colspan="16">
                  <div class="row">
                    <div style="width: 7rem">
                      <div class="font-justify">名&emsp;&emsp;&emsp;&emsp;称:</div>
                      <div class="font-justify">纳税人识别号:</div>
                      <div class="font-justify">地址、&emsp;电话:</div>
                      <div class="font-justify">开户行及账户:</div>
                    </div>
                    
                    <div
                      class="font-left"
                      style="width: 80%"
                    >
                      <div class="print"></div>
                      <div class="print"></div>
                      <div class="print"></div>
                      <div class="print"></div>
                    </div>
                  </div>
                </td>
                <td colspan="1">
                  <div class="wv">备注</div>
                </td>
                <td
                  class="remarks"
                  colspan="10"
                >
                  <div class="print text"></div>
                </td>
              </tr>
            </table>

            <div class="row jcsa invoice-footer">
                <a-row>
                    <a-col :span="6">收款人：</a-col>
                    <a-col :span="6">复核：</a-col>
                    <a-col :span="6">开票人：</a-col>
                    <a-col :span="6">销售方：（章）</a-col>
                </a-row>
            </div>
          </div>
          <div class="invoice-round right">
            <i
              :key="item"
              class="round"
              v-for="item in 15"
            ></i>
          </div>
        </div>
      </a-badge>
    </template>

    <div class="operation row jcsa pb-2">
      <div class="cancel" style="text-align:right">
        <a-button style="margin-right:10px"
        >取消</a-button>
        <a-button 
          type="primary"
        >确定提交</a-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
      return{
          NewTime:"",
          Id:"",
          resData:[]
      }
  
  },
 mounted(){
   
   this.Id = this.$route.query.id
      let nowDate = new Date()
  let date = {
    year: nowDate.getFullYear(),
    month: nowDate.getMonth() + 1,
    date: nowDate.getDate()
  }
  this.NewTime = date.year + '-' + date.month + '-' + date.date
  this.GetData()
  },
  methods: {
   async GetData(){
     console.log(this.Id)
     this.$http.post("/Base_leasesystem_invoicedetail/leasesystem_invoicedetail/GetInvoice_M_S_InID",{ id: this.Id })
      .then(res=>{
        this.resData = res.Data
        console.log(res)
      })
   }
  },
};
</script>
<style lang="less" scoped>
.container {
  width: 100%;
  padding: 0 5rem;
  display: flex;
  flex-direction: column;
  .invoice {
    border: 2px solid #8bbdff;
    width: 100%;
    display: flex;
    font-family: "楷体";
    color: #cd8846; // 409eff

    .invoice-round {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;

      &.left {
        border-right: 2px dashed #8bbdff;
      }
      &.right {
        border-left: 2px dashed #8bbdff;
      }
      .round {
        border: 2px solid #8bbdff;
        border-radius: 50%;
        width: 1.3rem;
        height: 1.3rem;
        display: block;
        margin-bottom: 1rem;
        &:first-child {
          margin-top: 1rem;
        }
      }
    }
    .invoice-body {
      flex: 23;
      padding: 2rem 2rem;
      .invoice-header {
        height: 6rem;
        display: flex;
        justify-content: center;
        align-items: center;
        .invoice-title {
          font-size: 1.3rem;
          > h1 {
            border-bottom: 4px double #cd8846;
            padding: 1rem;
          }
        }
      }
      .invoice-date {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
      }
      .invoice-footer {
        margin-top: 1ex;
      }
    }
    // padding: 0 1rem;
    .el-badge {
      width: 100%;
    }
  }
  .operation {
    margin: 1rem;
    width: 100%;
  }
}

/* CSS Document */
.tabtop13 {
  margin-top: 13px;

  display: table;
  border-collapse: separate;

  text-indent: initial;
  // border-spacing: 2px;
  border-color: #c87c35 !important;
  border-top-color: #c87c35;
  border-right-color: #c87c35;
  border-bottom-color: #c87c35;
  border-left-color: #c87c35;

  td {
    background-color: #ffffff;
    height: 25px;
    line-height: 150%;
    text-align: center;
  }
}
.font-center {
  text-align: center;
}
.btbg {
  background: #e9faff !important;
}

.title {
  font-family: 微软雅黑;
  font-size: 26px;
  font-weight: bold;
  border-bottom: 1px dashed #c87c35;
  color: #255e95;
}
.titfont {
  font-family: 微软雅黑;
  font-size: 16px;
  font-weight: bold;
  color: #255e95;
  background-color: #e9faff;
}
.text-v {
  width: 1rem;
  margin: 0 auto;
}
.remarks {
  text-align: left !important;
  .text {
    height: 100%;
  }
}
.print {
  font-size: 1rem;
  color:#8bbdff
}
</style>
